package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_dept")
public class Dept {
    //部门id
    @TableId(value = "dept_id",type = IdType.AUTO)
    private Integer deptId;
    //部门名称
    private String deptName;
    //部门状态
    private Integer status;
    //部门删除标志
    private Integer deleteFlag;
    //部门创建人
    private String createBy;
    //部门创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //部门修改人
    private String updateBy;
    //部门修改时间
    private Date updateTime;

}
